﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Scripts/szjt-allScripts.js" type="text/javascript"></script>
</head>
<body>
    <div id="vehicleInfo">
        <table id="Vehicle" class="szjt-edittable" width="100%">
            <input type="hidden" id="Vehicle_VehicleGuid" class="easyui-validatebox" />
            <tr>
                <td required="true">
                    车牌号
                </td>
                <td>
                    <input id="Vehicle_VehicleLicense" type="text" class="easyui-validatebox" required="true" />
                </td>
            </tr>
            <tr>
                <td>
                    车辆型号
                </td>
                <td>
                    <input id="Vehicle_VehicleUnit" type="text" class="easyui-validatebox" />
                </td>
            </tr>
            <tr>
                <td required="true">
                    车辆状态
                </td>
                <td>
                    <select id="Vehicle_VehicleStatus" type="text" class="szjt-codecombo" required="true"
                        category="车辆状态" />
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {            
            var $userAppXml = $(utility.xml.convertXmlStringToDoc(PrjConstant.Business.Vehicle.VehicleInfo.Template));

            $("#vehicleInfo").formpanel({
                formType: "edit",
                formTemplate: $userAppXml[0].xml,
                guidNode: "VehicleGuid",
                guidInput: "#Vehicle_VehicleGuid",
                taskGuid: PrjConstant.SysInfo.TaskGuid,
                dataType: PrjConstant.Business.Vehicle.VehicleInfo.DataType,
                onExecuteComplete: function (submitResult) {
                    utility.message.promptOperationResult("保存", "车辆信息", (submitResult == 0));
                    if (submitResult == 0) {
                        utility.page.closeDialog();
                    }

                }
            });

            //            $("#UserAppTable_CoachMemo").val("tests");
            //            $("#UserAppTable_CoachFormID").val(dataService.getApplyformID(PrjConstant.Asset.UserCoach.DataType, Session.LoginUser().UserGuid))
            //审批按钮
        });
    </script>
</body>
</html>
